import { request } from './request.js';
//获取列表
export const getDictionaryBlockList = (params) => {
  return request({
    url: '/Maintain/SelectDictionaryBlock',
    method: 'get',
    params,
  });
};
//新增
export const addDictionaryBlock = (data) => {
  return request({
    url: '/Maintain/AddDictionaryBlock/btn-dicblockadd',
    method: 'post',
    data,
  });
};
//修改
export const editDictionaryBlock = (data) => {
  return request({
    url: '/Maintain/UpdateDictionaryBlock/btn-dicblockupdate',
    method: 'post',
    data,
  });
};
//删除
export const delDictionaryBlock = (params) => {
  return request({
    url: '/Maintain/DeleteDictionaryBlock/btn-dicblockdelete',
    method: 'get',
    params,
  });
};
//批量插入
export const AddDictionaryBlockList = (params) => {
  return request({
    url: '/Maintain/AddDictionaryBlockList/btn-dicblockload',
    method: 'post',
    data: params,
  });
};
